import request from './http';
import {SsoUserGroup} from "@/types/entity";

/**
 * sso用户组织 前端接口
 */
export default class SsoUserGroupApi {
  static page(data: SsoUserGroup) {
    let { index, size, ...vo } = data;
    return request.post(`/ssoUserGroup/page/${index}/${size}`, vo);
  }

  static save(data: SsoUserGroup) {
    return request.post<SsoUserGroup>('/ssoUserGroup', data);
  }

  static update(data: SsoUserGroup) {
    return request.put<SsoUserGroup>('/ssoUserGroup', data);
  }

  static delete(ids: number[]) {
    return request.post('/ssoUserGroup/delete', ids);
  }

  static list(data: SsoUserGroup) {
    return request.post('/ssoUserGroup/list', data);
  }

  static getById(id: string) {
    return request.get(`/ssoUserGroup/get/${id}`);
  }


}
